done = "wx去完成.png"
list = "wx做任务集爆竹.png"

while true do
    x,y = image.findImageInRegion(list,806,1486,1063,1721,500000)--做任务集爆竹
    if x~=-1 and x~=-1 then
        event.tap(x,y)
        toast("做任务集爆竹") 
        mSleep(3000)
    end

        x,y = image.findImageInRegion(done,747,496,986,1518,500000)--去完成任务
        if x~=-1 and x~=-1 then
            event.tap(x,y)
            toast("去完成然后等待 12 秒") 
            mSleep(12*1000)
                keycode.back()
                toast("返回") 
                mSleep(5000) 
        end
end
